package cn.gnp.framework.eeamis.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


import cn.gnp.framework.eeamis.ProductVersion;
 
@Controller
@RequestMapping("/welcome")
public class AppInitController {
 
	@RequestMapping(method = RequestMethod.GET)
	public String printWelcome(ModelMap model) {
		model.addAttribute("powerdby", ProductVersion.getPowerdby());
		model.addAttribute("systemlink", ProductVersion.getSystemlink());
		model.addAttribute("versiontimestamp", ProductVersion.getVersiontimestamp());
		model.addAttribute("systemName", ProductVersion.getSystemName());
		return "index";
	}
}